package zoo.animals.birds.Ducks;

import zoo.animals.birds.Duck;

/**
 * Created with IntelliJ IDEA.
 * User: kvatashydze
 * Date: 11/25/13
 * Time: 6:27 PM
 * To change this template use File | Settings | File Templates.
 */
public class RedheadDuck extends Duck {
    Flyable flyBehaivour;
    public RedheadDuck(String name, int age) {
        super(name, age);
        flyBehaivour = new FlyWithWings();
    }
    public void fly(){
        flyBehaivour.flyAction();
    }
}
